﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GalaSoft.MvvmLight;
using System.Collections.Generic;

namespace Container
{
    public class ContainerPageViewModel : ViewModelBase
    {
        #region MenuItems
        /// <summary>
        /// Ekranların bulunduğu liste
        /// </summary>   
        List<MenuItem> _MenuItems;
        public List<MenuItem> MenuItems
        {
            get { return _MenuItems; }
            set
            {
                if (value == _MenuItems) return;
                _MenuItems = value;
                RaisePropertyChanged("MenuItems");
            }
        }
        #endregion MenuItems
    }

    public class MenuItem : ViewModelBase
    {
        #region Header
        /// <summary>
        /// Menü üzerinde görünecek text
        /// </summary>   
        string _Header;
        public string Header
        {
            get { return _Header; }
            set
            {
                if (value == _Header) return;
                _Header = value;
                RaisePropertyChanged("Header");
            }
        }
        #endregion Header

        #region XAPFileName
        /// <summary>
        /// İlgili ekrnaın dosya ismi
        /// </summary>   
        string _XAPFileName;
        public string XAPFileName
        {
            get { return _XAPFileName; }
            set
            {
                if (value == _XAPFileName) return;
                _XAPFileName = value;
                RaisePropertyChanged("XAPFileName");
            }
        }
        #endregion XAPFileName

        #region Description
        /// <summary>
        /// Ekran açıklaması
        /// </summary>   
        string _Description;
        public string Description
        {
            get { return _Description; }
            set
            {
                if (value == _Description) return;
                _Description = value;
                RaisePropertyChanged("Description");
            }
        }
        #endregion Description
    }
}
